/**
 * @author Leong Wai Lun A0032831R
 */

package company;

import properties.PropertiesDAO;
/**
 * 
 * read data from company file ,
 * write data to company file
 *
 */
public class CompanyDAO extends PropertiesDAO {
	public CompanyDAO() {
	}
	/**
	 * reads all the Data stored in the company file
	 * @return boolean
	 */
	public void readDTOs() {
		super.readDTOs(DTOTYPES.COMPANY);
	}
	/**
	 * writes all the data into the company file.
	 * @return boolean
	 */
	public void writeDTOs() {
		super.writeDTOs(DTOTYPES.COMPANY);
	}
	/**
	 * returns the specified DTO according the input id
	 * @param id the id of Data
	 * @return returns the specified Data according the input id
	 */
	public CompanyDTO getDTO(String id) {
		return (CompanyDTO) super.getDTO(id);
	}
}